<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"/>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<style lang="less">
#box {
  width: 405px;
  // 200px几乎屏幕的一半,设计稿一半是200?
  // 通过ps测量,设计稿的一半是405
  height: 100px;
  background-color: pink;
}
</style>
